/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Forms;

import DTO.DTONguoiDung;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JOptionPane;

/**
 *
 * @author Documents
 */
public class MainMenu extends javax.swing.JFrame {

    public static DTONguoiDung dtoNguoiDung;
    /**
     * Creates new form MainMenu
     */
    public MainMenu() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbed = new javax.swing.JTabbedPane();
        jpnlHeThong = new javax.swing.JPanel();
        jbtnDNhap = new javax.swing.JButton();
        jbtnDoiMK = new javax.swing.JButton();
        jbtnDXuat = new javax.swing.JButton();
        jbtnThoat = new javax.swing.JButton();
        jpnlQuanLy = new javax.swing.JPanel();
        jbtnBNhan = new javax.swing.JButton();
        jbtnNgDung = new javax.swing.JButton();
        jbtnNVien = new javax.swing.JButton();
        jbtnPhongKham = new javax.swing.JButton();
        jpnlKhac = new javax.swing.JPanel();
        jbtnThongTin = new javax.swing.JButton();
        jbtnCapNhat = new javax.swing.JButton();
        btnThongKe = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        jTabbed.setBackground(new java.awt.Color(255, 255, 204));

        jpnlHeThong.setBackground(new java.awt.Color(204, 255, 153));

        jbtnDNhap.setBackground(new java.awt.Color(255, 255, 255));
        jbtnDNhap.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/login_icon111 copy2.png"))); // NOI18N
        jbtnDNhap.setText("Đăng nhập");
        jbtnDNhap.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnDNhap.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnDNhap.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnDNhapActionPerformed(evt);
            }
        });

        jbtnDoiMK.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/Bitlockericon250.png"))); // NOI18N
        jbtnDoiMK.setText("Đổi mật khẩu");
        jbtnDoiMK.setEnabled(false);
        jbtnDoiMK.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnDoiMK.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnDoiMK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnDoiMKActionPerformed(evt);
            }
        });

        jbtnDXuat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/logout-md.png"))); // NOI18N
        jbtnDXuat.setText("Đăng xuất");
        jbtnDXuat.setEnabled(false);
        jbtnDXuat.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnDXuat.setPreferredSize(new java.awt.Dimension(79, 77));
        jbtnDXuat.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnDXuat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnDXuatActionPerformed(evt);
            }
        });

        jbtnThoat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/exit (1).png"))); // NOI18N
        jbtnThoat.setText("Thoát ");
        jbtnThoat.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnThoat.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnThoat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnThoatActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jpnlHeThongLayout = new javax.swing.GroupLayout(jpnlHeThong);
        jpnlHeThong.setLayout(jpnlHeThongLayout);
        jpnlHeThongLayout.setHorizontalGroup(
            jpnlHeThongLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnlHeThongLayout.createSequentialGroup()
                .addContainerGap(87, Short.MAX_VALUE)
                .addGroup(jpnlHeThongLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jbtnDXuat, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jbtnDNhap, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(40, 40, 40)
                .addGroup(jpnlHeThongLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jbtnDoiMK)
                    .addComponent(jbtnThoat, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(89, 89, 89))
        );
        jpnlHeThongLayout.setVerticalGroup(
            jpnlHeThongLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnlHeThongLayout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addGroup(jpnlHeThongLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jbtnDNhap, javax.swing.GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE)
                    .addComponent(jbtnDoiMK, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(28, 28, 28)
                .addGroup(jpnlHeThongLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jbtnDXuat, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jbtnThoat, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(48, Short.MAX_VALUE))
        );

        jTabbed.addTab("Hệ thống", jpnlHeThong);

        jpnlQuanLy.setBackground(new java.awt.Color(255, 255, 204));
        jpnlQuanLy.setForeground(new java.awt.Color(255, 255, 255));

        jbtnBNhan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/patient.png"))); // NOI18N
        jbtnBNhan.setText("Bệnh nhân");
        jbtnBNhan.setEnabled(false);
        jbtnBNhan.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnBNhan.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnBNhan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnBNhanActionPerformed(evt);
            }
        });

        jbtnNgDung.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/user-group-icon.png"))); // NOI18N
        jbtnNgDung.setText("Người dùng");
        jbtnNgDung.setEnabled(false);
        jbtnNgDung.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnNgDung.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnNgDung.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnNgDungActionPerformed(evt);
            }
        });

        jbtnNVien.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/Nurse_Male_Light.png"))); // NOI18N
        jbtnNVien.setText("Nhân sự");
        jbtnNVien.setEnabled(false);
        jbtnNVien.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnNVien.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnNVien.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnNVienActionPerformed(evt);
            }
        });

        jbtnPhongKham.setBackground(new java.awt.Color(255, 255, 255));
        jbtnPhongKham.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/hospital-icon.png"))); // NOI18N
        jbtnPhongKham.setText("Phòng khám");
        jbtnPhongKham.setEnabled(false);
        jbtnPhongKham.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnPhongKham.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnPhongKham.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnPhongKhamActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jpnlQuanLyLayout = new javax.swing.GroupLayout(jpnlQuanLy);
        jpnlQuanLy.setLayout(jpnlQuanLyLayout);
        jpnlQuanLyLayout.setHorizontalGroup(
            jpnlQuanLyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnlQuanLyLayout.createSequentialGroup()
                .addGap(80, 80, 80)
                .addGroup(jpnlQuanLyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jbtnBNhan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jbtnNgDung, javax.swing.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE))
                .addGap(33, 33, 33)
                .addGroup(jpnlQuanLyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jbtnPhongKham, javax.swing.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE)
                    .addComponent(jbtnNVien, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(0, 83, Short.MAX_VALUE))
        );
        jpnlQuanLyLayout.setVerticalGroup(
            jpnlQuanLyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnlQuanLyLayout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addGroup(jpnlQuanLyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jbtnBNhan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jbtnNVien, javax.swing.GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE))
                .addGap(31, 31, 31)
                .addGroup(jpnlQuanLyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jbtnPhongKham, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jbtnNgDung, javax.swing.GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );

        jTabbed.addTab("Quản lý", jpnlQuanLy);

        jpnlKhac.setBackground(new java.awt.Color(255, 204, 255));

        jbtnThongTin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/InfoIcon1.png"))); // NOI18N
        jbtnThongTin.setText("Thông tin");
        jbtnThongTin.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnThongTin.setMaximumSize(new java.awt.Dimension(87, 77));
        jbtnThongTin.setMinimumSize(new java.awt.Dimension(87, 77));
        jbtnThongTin.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnThongTin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnThongTinActionPerformed(evt);
            }
        });

        jbtnCapNhat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/agt_update_misc.png"))); // NOI18N
        jbtnCapNhat.setText("Cập nhật");
        jbtnCapNhat.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtnCapNhat.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtnCapNhat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnCapNhatActionPerformed(evt);
            }
        });

        btnThongKe.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/report-6 copy.png"))); // NOI18N
        btnThongKe.setText("Thống kê");
        btnThongKe.setEnabled(false);
        btnThongKe.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnThongKe.setMaximumSize(new java.awt.Dimension(87, 77));
        btnThongKe.setMinimumSize(new java.awt.Dimension(87, 77));
        btnThongKe.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnThongKe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnThongKeActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jpnlKhacLayout = new javax.swing.GroupLayout(jpnlKhac);
        jpnlKhac.setLayout(jpnlKhacLayout);
        jpnlKhacLayout.setHorizontalGroup(
            jpnlKhacLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnlKhacLayout.createSequentialGroup()
                .addGap(78, 78, 78)
                .addGroup(jpnlKhacLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnThongKe, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jbtnThongTin, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE))
                .addGap(47, 47, 47)
                .addComponent(jbtnCapNhat, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(74, Short.MAX_VALUE))
        );
        jpnlKhacLayout.setVerticalGroup(
            jpnlKhacLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnlKhacLayout.createSequentialGroup()
                .addContainerGap(42, Short.MAX_VALUE)
                .addComponent(btnThongKe, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addGroup(jpnlKhacLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jbtnThongTin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jbtnCapNhat, javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE))
                .addGap(57, 57, 57))
        );

        jTabbed.addTab("Khác", jpnlKhac);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbed, javax.swing.GroupLayout.PREFERRED_SIZE, 409, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbed)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    
    private void jbtnDNhapActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnDNhapActionPerformed
        DangNhap dn = new DangNhap(this, true);
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        dn.setLocation((dim.width - dn.getWidth())/2, (dim.height - dn.getHeight())/2);
        dn.setVisible(true);
    }//GEN-LAST:event_jbtnDNhapActionPerformed

    private void jbtnDoiMKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnDoiMKActionPerformed
        DoiMatKhau doimk = new DoiMatKhau(this, true);
        Dimension dimen = Toolkit.getDefaultToolkit().getScreenSize();
        doimk.setLocation((dimen.width - doimk.getWidth())/2, (dimen.height - doimk.getHeight())/2);
        doimk.setVisible(true);
    }//GEN-LAST:event_jbtnDoiMKActionPerformed

    private void jbtnDXuatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnDXuatActionPerformed
        MainMenu.jbtnDNhap.setEnabled(true);
        MainMenu.jbtnDoiMK.setEnabled(false);
        MainMenu.jbtnDXuat.setEnabled(false);
        MainMenu.jbtnBNhan.setEnabled(false);
        MainMenu.jbtnNVien.setEnabled(false);
        MainMenu.jbtnPhongKham.setEnabled(false);
        MainMenu.jbtnNgDung.setEnabled(false);
        MainMenu.jbtnPhongKham.setEnabled(false);
    }//GEN-LAST:event_jbtnDXuatActionPerformed

    private void jbtnThoatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnThoatActionPerformed
        if(JOptionPane.showConfirmDialog(null, "Bạn có chắc muốn thoát", "Thông báo", JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION)
        System.exit(0);
    }//GEN-LAST:event_jbtnThoatActionPerformed

    private void jbtnBNhanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnBNhanActionPerformed
        DanhSachBenhNhan dsbn = new DanhSachBenhNhan();
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        dsbn.setLocation((dim.width - dsbn.getWidth())/2, (dim.height - dsbn.getHeight())/2);
        dsbn.setVisible(true);
    }//GEN-LAST:event_jbtnBNhanActionPerformed

    private void jbtnNgDungActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnNgDungActionPerformed
        NguoiDung dsbn = new NguoiDung();
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        dsbn.setLocation((dim.width - dsbn.getWidth())/2, (dim.height - dsbn.getHeight())/2);
        dsbn.setVisible(true);
    }//GEN-LAST:event_jbtnNgDungActionPerformed

    private void jbtnNVienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnNVienActionPerformed
        DanhSachNhanVien dsbn = new DanhSachNhanVien();
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        dsbn.setLocation((dim.width - dsbn.getWidth())/2, (dim.height - dsbn.getHeight())/2);
        dsbn.setVisible(true);
    }//GEN-LAST:event_jbtnNVienActionPerformed

    private void jbtnCapNhatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnCapNhatActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jbtnCapNhatActionPerformed

    private void jbtnThongTinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnThongTinActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jbtnThongTinActionPerformed

    private void jbtnPhongKhamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnPhongKhamActionPerformed
        PhongKham dsbn = new PhongKham();
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        dsbn.setLocation((dim.width - dsbn.getWidth())/2, (dim.height - dsbn.getHeight())/2);
        dsbn.setVisible(true);
    }//GEN-LAST:event_jbtnPhongKhamActionPerformed

    private void btnThongKeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnThongKeActionPerformed
        ThongKe form = new ThongKe();
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        form.setLocation((dim.width - form.getWidth())/2, (dim.height - form.getHeight())/2);
        form.setVisible(true);
    }//GEN-LAST:event_btnThongKeActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
                MainMenu main = new MainMenu();
                main.setLocation((dim.width - main.getWidth())/2, (dim.height - main.getHeight())/2);
                main.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    public static javax.swing.JButton btnThongKe;
    private javax.swing.JTabbedPane jTabbed;
    public static javax.swing.JButton jbtnBNhan;
    private javax.swing.JButton jbtnCapNhat;
    public static javax.swing.JButton jbtnDNhap;
    protected static javax.swing.JButton jbtnDXuat;
    public static javax.swing.JButton jbtnDoiMK;
    public static javax.swing.JButton jbtnNVien;
    public static javax.swing.JButton jbtnNgDung;
    public static javax.swing.JButton jbtnPhongKham;
    public static javax.swing.JButton jbtnThoat;
    private javax.swing.JButton jbtnThongTin;
    private javax.swing.JPanel jpnlHeThong;
    private javax.swing.JPanel jpnlKhac;
    private javax.swing.JPanel jpnlQuanLy;
    // End of variables declaration//GEN-END:variables
}
